import layoutHeaderAside from '@/layout/header-aside'

// const meta = { auth: true }

export default {
  path: '/information',
  component: layoutHeaderAside,
  children: (pre => [
    {
      path: '/information/banner/banner',
      name: 'information-banner-index',
      meta: {
        title: '轮播管理',
        auth: true
      },
      component: () => import('@/views/information/banner/index')
    },
    {
      path: '/information/banner/create',
      name: 'information-banner-create',
      meta: {
        title: '新增轮播',
        auth: true
      },
      component: () => import('@/views/information/banner/create')
    },
    {
      path: '/news/getNewsPage',
      name: 'information-news-index',
      meta: {
        title: '首页轮播图',
        auth: true
      },
      component: () => import('@/views/information/news/index')
    },
    {
      path: '/news/create',
      name: 'information-news-create',
      meta: {
        title: '添加新闻资讯',
        auth: true
      },
      component: () => import('@/views/information/news/create')
    }
  ])('information-')
}
